<%@page import="com.lfs.Entity.ProductEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="./css/add.css" type="text/css">
</head>
<body>
<% ProductEntity pe = (ProductEntity)request.getAttribute("pe");
if(pe == null){
   out.print("该用户不存在");
   return;
}
 
%>
<div class="div_add">
		<form action="ProductServlet?status=ProductUpdate" method="post" enctype="multipart/form-data" >
		
			     商品名称：<input type="text" name="name" value="<%=pe.getName() %>" placeholder="商品名称 不能为空" autofocus required><br>
			     商品描述：<input type="text" name="describe" value="<%=pe.getDescribe() %>"placeholder="商品描述 不能为空" required ><br>
			     商品数量：<input type="text" name="number" value="<%=pe.getNumber() %>" placeholder="商品数量 不能为空 可以为0" required ><br>
			     商品价格：<input type="text" name="price" value="<%=pe.getPrice() %>" placeholder="商品价格小数点后两位" required ><br>
			     商品图片：<input type="file" name="img" value="<%=pe.getImg() %>"><br><img src="upload/<%=pe.getImg()%>"style="width:50px;height: 45px">
			  <input type="submit" value="修改" class="add">   
			  
		</form>
</div>
</body>
</html>